package designmode.strategy;

/**
 * Created by Administrator on 2017/10/28 028.
 */
public class test
{
    public static void main(String[] args)
    {
        Duck d1 = new RedDuck();
        Duck d2 = new GreenDuck();
        d1.performFly();
        d1.performTweet();
        d2.performFly();
        d2.performTweet();
    }
}
